package com.object.oriented.exam.system8.service;

import com.object.oriented.exam.system1.entity.Problem;
import com.object.oriented.exam.system5.entity.Answer;
import com.object.oriented.exam.system8.entity.Question;

import java.util.List;

/**
 * @author xdf
 * @date 2023-06-20
 */
public interface PracticeService {
    /**
     * 提交练习题答案，并获取答案和解析
     * @param answer
     * @return
     */
    Question commit(Answer answer);

    /**
     * 获取某知识点对应的题目列表
     * @param knowledgeId
     * @return
     */
    List<Problem> practice(Long knowledgeId);
}
